package com.atguigu.gulimall.product.vo;

import com.atguigu.gulimall.product.entity.SkuImagesEntity;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;
import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import lombok.Data;
import java.util.List;

@Data
public class SkuItemVo {

    // 1.sku的基本信息,pms_sku_info
    public SkuInfoEntity skuInfo;
    // 2.sku的图片信息 pms_sku_images
    public List<SkuImagesEntity> images;
    // 3.spu下的sku组合,即销售属性
    public List<SkuItemSaleAttrVo> attrValues;

    // 4. spu的介绍,pms_spu_info_desc
    private SpuInfoDescEntity desp;

    // 5. spu的规格参数
    private List<SpuItemAttrGroupVo> baseAttrs;

    // 6.是否有货
    public boolean hasStock = true;
}
